package cn.agiledata.bank.barcodepayment.logic;

import java.util.Date;
import java.util.List;

import cn.agiledata.bank.common.servlet.InitForString;
import cn.agiledata.bank.hibernateBean.Account;

public class PayHistoryQueryBean {
	private Date createTime;
	private Date updateTime;
	private String barCode;
	private String companyName;
	private String amount;
	private String type;
	private Account account;
	private String corpType;
	private String payFeeNo;
	
	public Account getAccount() {
		return account;
	}
	public void setAccount(Account account) {
		this.account = account;
	}
	public PayHistoryQueryBean(
			Date createTime,
			Date updateTime,
			String companyName,
			String barCode,
			double amount,
			Account account,
			String status,
			String corpType,
			String payFeeNo)
	{
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.companyName = companyName;
		this.barCode = barCode;
		this.amount = String.valueOf(amount);
		this.account = account;
		this.corpType = corpType;
		this.payFeeNo = payFeeNo;
		List listId =InitForString.getListId("USER_BARCODEPAY_STATUS");
		List listName=InitForString.getListName("USER_BARCODEPAY_STATUS");
		for (int j = 0; j < listId.size(); j++) {
			if (listId.get(j).toString().equals(status))this.type = (String)listName.get(j);
		}
	}
	public PayHistoryQueryBean(
			Date createTime,
			Date updateTime,
			String barCode,
			Double amount,
			Long accountId,
			String status)
	{
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.companyName = "手机充值帐户";
		this.barCode = barCode;
		this.amount = String.valueOf(amount);
		if (accountId == null) this.account = null;
		List listId =InitForString.getListId("MOBIL_CHARGE_STATUS");
		List listName=InitForString.getListName("MOBIL_CHARGE_STATUS");
		for (int j = 0; j < listId.size(); j++) {
			if (listId.get(j).toString().equals(status))this.type = (String)listName.get(j);
		}
	}
	public String getAmount() {
		return amount;
	}
	public void setAmount(String amount) {
		this.amount = amount;
	}
	public String getBarCode() {
		return barCode;
	}
	public void setBarCode(String barCode) {
		this.barCode = barCode;
	}
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getCorpType() {
		return corpType;
	}
	public void setCorpType(String corpType) {
		this.corpType = corpType;
	}
	public String getPayFeeNo() {
		return payFeeNo;
	}
	public void setPayFeeNo(String payFeeNo) {
		this.payFeeNo = payFeeNo;
	}
}
